package com.dream.vo.app;

import javax.validation.GroupSequence;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import com.dream.vo.base.First;
import com.dream.vo.base.Second;
import com.dream.vo.base.Third;


/**
 * 
 * @author Administrator
 *
 */
@GroupSequence({First.class, Second.class,Third.class, GroupVO.class})  
public class GroupVO  {
	
	@NotBlank(message = "err0001",groups = {First.class})
	@Pattern(regexp = "^[a-zA-Z0-9]+$", message = "err0026", groups = {Second.class})
	private String id;
	
	@NotBlank(message = "err0001",groups = {First.class})
	private String name;
	
	private Long[] resources;
	
	private String userId;
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long[] getResources() {
		return resources;
	}

	public void setResources(Long[] resources) {
		this.resources = resources;
	}


}
